package org.yscz.common.enums;

import org.yscz.common.HttpStatus;

/**
 * 用户返回自定义信息枚举类
 *
 * @author achen
 * @create 2021-08-16 13:45
 */
public enum UserResponseEnum {
    USERNAME_PASSWORD_NOT_EMPTY(HttpStatus.BAD_REQUEST, "请输入用户名和密码"),
    USERNAME_NOT_EMPTY(HttpStatus.BAD_REQUEST, "请输入登录账号"),
    PASSWORD_NOT_EMPTY(HttpStatus.BAD_REQUEST, "请输入登录密码"),
    USER_NOT_EXIST(HttpStatus.USER_ACCOUNT_ERROR, "请输入正确的登录账号"),
    PASSWORD_ERROR(HttpStatus.PASSWORD_ERROR, "请输入正确的登录密码"),
    ACCOUNT_DISABLED_ERROR(HttpStatus.ACCOUNT_DISABLED_ERROR, "账号已关闭");

    private Integer code;
    private String msg;


    UserResponseEnum() {
    }

    UserResponseEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
